import request from '@/utils/request'

// 查询通风设施清洁维护列表
export function listTongfengyanghu(query) {
  return request({
    url: '/biz/tongfengyanghu/list',
    method: 'get',
    params: query
  })
}

// 查询隧道养护等级列表
export function getlevelByTunnelName(query) {
  return request({
    url: '/biz/tongfengyanghu/level',
    method: 'get',
    params: query
  })
}

// 查询通风设施清洁维护详细
export function getTongfengyanghu(id) {
  return request({
    url: '/biz/tongfengyanghu/' + id,
    method: 'get'
  })
}

// 新增通风设施清洁维护
export function addTongfengyanghu(data) {
  return request({
    url: '/biz/tongfengyanghu',
    method: 'post',
    data: data
  })
}

// 修改通风设施清洁维护
export function updateTongfengyanghu(data) {
  return request({
    url: '/biz/tongfengyanghu',
    method: 'put',
    data: data
  })
}

// 删除通风设施清洁维护
export function delTongfengyanghu(id) {
  return request({
    url: '/biz/tongfengyanghu/' + id,
    method: 'delete'
  })
}

// 导出通风设施清洁维护
export function exportTongfengyanghu(query) {
  return request({
    url: '/biz/tongfengyanghu/export',
    method: 'get',
    params: query
  })
}
